<div class="submenu">
    <ul>
        <li class="selected">Информация</li>
        <li ><a href="/supplier/<?=$supplier->id ?>/goods">Товары</a></li>
    </ul>
</div>
<div class="clear"></div>
<div class="supplier_title_box">
    <h1><?=$supplier->name ?></h1>
</div>
<div class="clear"></div>   
<div class="">
    <p>
        <?php if ($supplier->get_supplier_phone()): ?><a href="#" onclick="yaCounter28452126.reachGoal('show_phone_click', {supplier_id: '<?=$supplier->id ?>'}); $(this).replaceWith('<strong><?=$supplier->get_supplier_phone() ?></strong>'); update_supplier_rank(<?=$supplier->id ?>, 2); return false;">Показать телефон</a>&nbsp;&nbsp;&nbsp;<?php endif; ?>
        <?php if ($supplier->get_supplier_email()): ?><a href="#" onclick="yaCounter28452126.reachGoal('show_email_click'); $(this).replaceWith('<?=$supplier->get_supplier_email() ?>'); update_supplier_rank(<?=$supplier->id ?>, 2); return false;">Показать email</a>&nbsp;&nbsp;&nbsp;<?php endif; ?>
        <?php /*if ($supplier->email):*/ ?><a class="send-contacts-modal" href="#send-contacts-modal" onclick="yaCounter28452126.reachGoal('send_contacts_click'); set_data_for_send_contacts_modal(<?=$supplier->id ?>, 0); update_supplier_rank(<?=$supplier->id ?>, 2); return true;">Отправить контакты поставщику</a><?php /*endif; */?>
    </p>

    <p class="expand"><?=$supplier->description ?></p>
    
    <p class="expand2"><?=$supplier->buy_opt ?></p> 
</div>
<hr />
<h2>Информация о компании</h2>

<div class="span-8 append-1">
    <p><strong>Тип компании:</strong><br /> <?=$supplier->type ?></p>
    
    
    <strong>Объем поставок:</strong>
    <ul>
        <? 
        $volume = explode(",", $supplier->volume);
        foreach($volume as $row){ ?>
        <li><?=$row ?></li>
        <? } ?>    
    </ul>
    
    
    <p><strong>Минимальная сумма заказа:</strong> <?=$supplier->min_order ?></p>
    
    <ul>
        
        
        
        
    </ul>

    

    <p><strong>Юр. лицо:</strong> <?=$supplier->legal_person ?><br />
    
    </p>
    
    <p><strong>Реквизиты:</strong> </p>
    <p id="bank_info_box"><?=$supplier->payment_details ?></p>
    

</div>
<div class="span-8 last">
    <strong>Варианты оплаты:</strong>
    <ul>
        <? 
        $data = explode(",", $supplier->payment_options);
        foreach($data as $row){ ?>
        <li><?=$row ?></li>
        <? } ?>                    
    </ul>
    <strong>Способы доставки:</strong>
    <ul>
        <? 
        $data = explode(",", $supplier->delivery_methods);
        foreach($data as $row){ ?>
        <li><?=$row ?></li>
        <? } ?>
    </ul>
</div>

<div class="clear"></div>

<p>
    <?php if ($supplier->get_supplier_phone()): ?><a href="#" onclick="yaCounter28452126.reachGoal('show_phone_click', {supplier_id: '<?=$supplier->id ?>'}); $(this).replaceWith('<strong><?=$supplier->get_supplier_phone() ?></strong>'); update_supplier_rank(<?=$supplier->id ?>, 2); return false;">Показать телефон</a>&nbsp;&nbsp;&nbsp;<?php endif; ?>
    <?php if ($supplier->get_supplier_email()): ?><a href="#" onclick="yaCounter28452126.reachGoal('show_email_click'); $(this).replaceWith('<?=$supplier->get_supplier_email() ?>'); update_supplier_rank(<?=$supplier->id ?>, 2); return false;">Показать email</a>&nbsp;&nbsp;&nbsp;<?php endif; ?>
    <?php /*if ($supplier->email):*/ ?><a class="send-contacts-modal" href="#send-contacts-modal" onclick="yaCounter28452126.reachGoal('send_contacts_click'); set_data_for_send_contacts_modal(<?=$supplier->id ?>, 0); update_supplier_rank(<?=$supplier->id ?>, 2); return true;">Отправить контакты поставщику</a><?php /*endif;*/ ?>
</p>

<?php /*if ($supplier->email):*/ ?>
<div class="fancybox-skin" style="padding: 15px; width: auto; height: auto; position: fixed; bottom: 0px; right: 15px; border: 4px solid; border-bottom: none; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px;">
    <div class="fancybox-outer">
        <div class="fancybox-inner" style="overflow: auto; width: 377px;">
            <div id="send-contacts-modal-fake" style="width: 360px; overflow: hidden; display: block;">
                <h2 style="margin-top: 10px;">Отправьте контакты поставщику</h2>

                <form action="/supplier/sendcontacts" method="post">
                    <input type="hidden" name="supplier_id" value="<?=$supplier->id ?>" />
                    <input type="hidden" name="good_id" value="0" />
                    
                    <div class="narrow">
                        <label for="id_phone" class="large">Телефон</label><br>
                        <input id="id_phone" type="text" class="long" name="phone" maxlength="255" placeholder="8-912-234-56-78" required>
                    </div>
                    
                    <div class="narrow">
                        <label for="id_email" class="large">Email</label><br>
                        <input id="id_email" type="text" class="long" name="email" maxlength="255" placeholder="email@domain.com">
                    </div>
                    
                    <div class="narrow">
                        <label for="id_text" class="large">Сообщение</label><br>
                        <textarea id="id_text" class="long" name="text" style="width: 300px; height: 100px; padding: 5px;"></textarea>
                    </div>

                    <button type="submit" id="id_submit" class="wide_button">Отправить</button>
                </form>
                
                
            </div> 
        </div>
    </div>
    <?php /*<a title="Close" class="fancybox-item fancybox-close" href="javascript:;" onclick="$(this).closest('.fancybox-skin').find('form').toggle();"></a>   */ /*?>
</div>
<?php /*endif;*/ ?>